   function queryDictForm(pageIndex,pageSize)
     {
          var url =base+"/dictManager/dictList.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#dictContent").load(url+"&"+ encodeURI(encodeURI(params)));
     }

      function gotoPage(pageSize)
     {
        var pageIndex =jQuery("#pageIndex").val();
        queryDictForm(pageIndex,pageSize);
     }

     function toaddDict()
     {
       location.href=base + "/dictManager/toaddDict.do";
     }

     function toeditDict(id)
     {
       location.href=base+"/dictManager/toupdateDict.do?dictId="+id;
     }

  
     function deleteDict(id)
     {
              jQuery.post(
                      base+"/dictManager/delDict.do",
                      {dictId:id},
                      function(result){
                           queryDictForm(1,15);
               });
     }

 
 
 
     function saveDict()
     {   
         jQuery("#dictForm").ajaxSubmit(
           {
              type:"post",
              clearForm: true,        // 是否清空form  
              resetForm: true,       // 是否重置form  
              success:function(data)
              { 
                 var d= eval("("+data+")");
                 if(d.STATUS=="0")
                 {
                    alert("操作成功!");
                    return location.href=base+"/dictManager.do";
                 }
                 else
                 {
                    alert(d.MSG);
                 }
              }
           }
          );
     }
    
